﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QXBook.Utils;

namespace QXBook.Model
{
    public class ViedoInfo : CoreTemplate
    {
        public string ViedoPath { get; set; }
        public string ViedoUrl { get; set; }

        public YesNo IsNeedScore { get; set; }

        public string Score { get; set; }

        public string GetUrl()
        {
            return string.IsNullOrEmpty(ViedoUrl) ? System.Web.HttpContext.Current.Server.MapPath(ViedoPath) : ViedoUrl;
        }
    }
}
